package com.jml.consumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

@Service
public class MessageConsumerService {
	//后面是队列名字
	@JmsListener(destination = "account.msg.queue")
	public void receiveMessage(String text){
		System.err.println("接受消息："+text);
	}
}
